package org.jeecg.modules.meter.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 仪表收费标准
 * @Author: jeecg-boot
 * @Date:   2019-12-12
 * @Version: V1.0
 */
@Data
@TableName("meter_feeitem")
public class MeterFeeItem extends BaseEntity implements Serializable  {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.UUID)
	private String id;
	/**租户id*/
	private Integer tenantId;
	/**projectId*/
	private String projectId;
	@TableField(exist = false)
	private String projectName;
	/**一级分类*/
	@Dict(dicCode = "meter_category")
	private String category;
	/**表类型*/
	private String meterType;
	/**单价*/
	private String price;
	/**精确度*/
	@Dict(dicCode = "unit_account")
	private Integer scale;
	/**是否需要合并到物业收费里  0:不需要  1:需要*/
	private String mergeFlg;
	/**创建者*/
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**更新者*/
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**删除标志*/
	@TableLogic
	private String delFlag;
	/**备注信息*/
	private String remarks;

	@TableField(exist = false)
	private List<MeterFeeItemSub> subList = new ArrayList<>();
}
